#include <iostream>

#include "Server.h"
#include "SFML/Network.hpp"


//#define DEBUG true


using namespace std;

int main()
{
    //cout << "Hello world!" << endl;
	
	srand(time(NULL));
	
	Server s(50000);
	s.run();

/*
 * Server Basique :
	cout << "Wait ... " << sf::IpAddress::getLocalAddress() << endl;


cout << sf::IpAddress::getPublicAddress() << endl;

	sf::TcpListener listener;
	listener.listen(45670);

	sf::TcpSocket socket;
	listener.accept( socket );

	cout << "newco : " << socket.getRemoteAddress() << endl;

	char buffer[1024];
	std::size_t receive = 0;
	socket.receive(buffer, sizeof(buffer), receive);
	cout << "s : " << buffer << endl;

	string str = "It's work !";
	socket.send(str.c_str(), str.size() + 1);

*/	
    return 0;
}
